﻿using UnityEngine;
using System.Collections;

public enum EGameButton
{
    BACK,
    REPLAY,
}

public class UIGameButton : MonoBehaviour {
    public EGameButton eGameButton;

	void OnClick()
    {
        switch (eGameButton)
        {
            case EGameButton.BACK:
     
                Application.LoadLevel("Level");
                break;
            case EGameButton.REPLAY:
                GameManager.Instance.Reset();
                break;
        }
    }
}
